﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity.JJFlow;
using Jinjia.Approve.Model.Input.JJFlow;
using Jinjia.Approve.Model.VM;
using Jinjia.Core.BaseInfrastructure.StorageModel.Model;

namespace Jinjia.Approve.IRepository.JJFlow
{
    public interface IFlowDicCodeRepository
    {
        Task<PageListSearchResultVM<JJDictCodeViewModel>> GetMappingPageList(JJDictCodeSearchCondition searchCondition, int user_id);

        Task<jj_flow_dictcode> GetById(int id);

        Task<int> GetDicCodeCount(string dictcode_key, int id, int template_id);

        Task<int> Save(jj_flow_dictcode data);

        Task LogicalDelete(int id, int user_id);

        Task<List<jj_flow_dictcode>> GetListByTemplateId(int template_id);
    }
}